class Displacement(object):
	def __init__(self, data, d=[], *arguments, **keywords):
		self.data = data
		if len(d) != self.data.settings.dimensions:
			self.d = []
			for i in range(0, self.data.settings.dimensions):
				self.d.append(0.0)
			del i
		else:
			self.d = d
	
	def __repr__(self):
		return "{Displacement: {d: %s}}" % (self.d)
